class zArray {
  constructor(bufr, offset) {
    let b = Int8Array(bufr.slice(offset, offset + 8))
    this.x = b[0];
    this.size = b[1] * b[2] * b[3] * b[4]
    this.shape = b.slice(1, 5)
    this.d = Int16Array(bufr.slice(offset + 8, offset + 8 + this.a * 2))
  }
  
  mean(axis) {
    let r = axis.reduce((a, b) => a * b, 1)
    let a, b, c, d;
  }
}